export class BaseException extends Error {
  // 状态码
  status: number;
  // 提示信息
  message: string;
}

export class NotFoundException extends BaseException {
  status = 404;

  constructor(msg?: string) {
    super();
    this.message = msg || '无此送货单';
  }
}

export class UnReviewedException extends BaseException {
  status = 409;

  constructor(msg?: string) {
    super();
    this.message = msg || '送货单未审核';
  }
}

export default {
  NotFoundException,
  UnReviewedException
}